const { DataTypes } = require('sequelize');
const { sequelize } = require('../config/db');

const Plotting = sequelize.define('Plotting', {
  name: {
    type: DataTypes.STRING,
    allowNull: false,
    comment: '标绘名称'
  },
  content: {
    type: DataTypes.TEXT,
    allowNull: false,
    comment: '标绘内容（长字符串）'
  }
}, {
  tableName: 'plottings',
  timestamps: true
});

module.exports = Plotting;